package com.itheima.feign.user;

import com.itheima.goods.pojo.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "user-service")
public interface UserFeign {
    @GetMapping("/address/{userName}")
    List<Address> findByUserName(@PathVariable("userName") String userName);
}
